<!DOCTYPE html>
<html lang="en">

<head>
    {include file="common/meta_new" /}
</head>
<style>
.commit-btn {
  margin-top: 1rem;
  width: 8.2933rem;
  height: 1.28rem;
  line-height: 1.28rem;
  border-radius: .64rem;
  background: #2493F1;
  color: #FFFFFF;
  font-size: .4267rem;
  text-align: center;
  cursor: pointer;
      margin-left: auto;
    margin-right: auto;
}
</style>

<script src="/static/js/layer/layer.js"></script>
<body class="F6">
    <div id="app" class="drsj-page">
        <!-- header -->
        <div class="header">
            <div class="header-height"></div>
            <div class="header-wrap">
                <div class="header-content">
                    <div class="left">
                        <!--<div class="go-back" url="/index/user/index"><img src="/static/images/go-back.png" alt=""></div>-->
                        <div class="text">达人升级</div>
                    </div>
                    <div class="title"></div>
                </div>
            </div>
        </div>
        <!-- 顶部背景图 -->
        <div class="top-wrap">
            <img src="/static/images/drsj-bg.png" alt="">
            <div class="title">请选择需要升到的级别</div>
        </div>
        <div class="card-list">
            {if $user['expert_level']<1 }

            <div class="item" url="choose?level=1" data-level="1"  upgrade-type="{$upgrade_type}">
                <div class="top">
                    <img src="/static/images/daren.png" alt="">
                </div>
                <div class="middle">
                    <div class="left">一星达人</div>
                    <div class="right">
                        <img src="/static/images/star.png" alt="">
                    </div>
                </div>
                <div class="bottom">会员权益说明，会员权益</div>
            </div>

            {/if}

            {if $user['expert_level']<2 }

            <div class="item" url="choose?level=2" data-level="2"   upgrade-type="{$upgrade_type}">
                <div class="top">
                    <img src="/static/images/daren.png" alt="">
                </div>
                <div class="middle">
                    <div class="left">二星达人</div>
                    <div class="right">
                        <img src="/static/images/star.png" alt="">
                        <img src="/static/images/star.png" alt="">
                    </div>
                </div>
                <div class="bottom">会员权益说明，会员权益</div>
            </div>

            {/if}

            {if $user['expert_level']<3 }

            <div class="item" url="choose?level=3" data-level="3"  upgrade-type="{$upgrade_type}">
                <div class="top">
                    <img src="/static/images/daren.png" alt="">
                </div>
                <div class="middle">
                    <div class="left">三星达人</div>
                    <div class="right">
                        <img src="/static/images/star.png" alt="">
                        <img src="/static/images/star.png" alt="">
                        <img src="/static/images/star.png" alt="">
                    </div>
                </div>
                <div class="bottom">会员权益说明，会员权益</div>
            </div>
            {/if}
        </div>
         {if $user['expert_level']!=0 }
         <div onclick="goback()" class="commit-btn login_btn">返回上页</div>
         {else}
        <div  onclick="logout()"  class="commit-btn login_btn">退出登录</div>
        {/if}
    </div>
    <script src="/static/js/common.js"></script>
    <script src="/static/js/expert/index.js?v=2"></script>
</body>
<script>
    function logout(){
         window.location.href = "{:url('index/user/logout','','',true)}";
    }
    function goback(){
         window.location.href = "{:url('index/user/index','','',true)}";
    }
</script>
</html>